<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <title>个人设置</title>
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta name="apple-mobile-web-app-capable" content="no" />
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/base.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/personalCenter.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/js/lib/croppie/croppie.css">
</head>
<body>
  <div class="floor">
    <ul class="floor__order_nav">
      <li class="order_nav_item line__bottom_efeff4">
        <a class="df" href="javascript:;">
          <span>头像</span>
          <span class="value tr" id="upload_btn">
            <label for="upload">
          <span class="user__headportrait dib vm">
          <c:choose>
          	<c:when test="${empty requestScope.user.imageAddress}">
          	<img id="base64Image" src="${pageContext.request.contextPath}/static/images/icon_default_03.jpg" alt="">
          	</c:when>
          	<c:otherwise>
          	<img id="base64Image" src="${requestScope.user.imageAddress}"  onerror="this.src='${pageContext.request.contextPath}/static/images/icon_default_03.jpg'" alt="">
          	
          	</c:otherwise>
          </c:choose>
          </span></label>
          <input type="file" name="" accept="image/*" id="upload">
          </span>
          <span class="icon_order_nav"></span>
        </a>
      </li>
      <li class="order_nav_item line__bottom_efeff4">
        <a href="${pageContext.request.contextPath}/user/toModify">
          <span>昵称</span>
          <span class="value tr">${requestScope.user.petName}</span>
          <span class="icon_order_nav"></span>
        </a>
      </li>
      <li class="order_nav_item line__bottom_efeff4">
        <a href="javascript:;"><input id="sex" type="hidden" value="${requestScope.user.sex}">
          <span>性别</span>
          <span class="value tr selectSex"><c:if test="${'1' eq requestScope.user.sex}">男</c:if><c:if test="${'0' eq requestScope.user.sex}">女</c:if></span>
          <span class="icon_order_nav"></span>
        </a>
      </li>
       <li class="order_nav_item line__bottom_efeff4">
        <a class="app" href="javascript:;">
          <span>生日</span>
          <span class="value datetime_value tr" id="day">${requestScope.user.birthday}</span>
          <span class="icon_order_nav"></span>
        </a>
      </li>
    </ul>
</div>
    <div class="ui_cells">  
      <div class="ui_cell login_submit">
        <div class="ui_cell_bd">
          <a class="ui_btn ui_btn_primary btn_login_submit db tc" href="${pageContext.request.contextPath}/user">返回个人中心</a>
        </div>
      </div>
    </div>
  <!-- 头像弹出层 -->
  <div class="upload_headportrait">
    <div class="headportrait_box"></div>
    <a class="ui_btn ui_btn_primary db tc btn_save" onchange="upload()">保存</a>
  </div>
   <script src="${pageContext.request.contextPath}/static/js/lib/jquery/jquery.min.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/lib/layer/layer.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/lib/form.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/lib/bundle.js"></script> 
   <script src="${pageContext.request.contextPath}/static/js/lib/picker.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/lib/time/datetimepicker.build.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/lib/time/time.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/wap/main-user-message.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/lib/croppie/croppie.min.js"></script>
</body>

</html>
